package com.lzs.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.util.Date;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 商品表
 * </p>
 *
 * @author ymx
 * @since 2020-11-23
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("b_commodity")
@ApiModel(value="Commodity对象", description="商品表")
public class Commodity implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "商品表")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "条码")
    private String bar;

    @ApiModelProperty(value = "别名")
    private String alias;

    @ApiModelProperty(value = "名称")
    private String name;

    @ApiModelProperty(value = "长")
    private Double length;

    @ApiModelProperty(value = "宽")
    private Double width;

    @ApiModelProperty(value = "高")
    private Double height;

    @ApiModelProperty(value = "价值")
    private Double worth;

    @ApiModelProperty(value = "净重")
    private Double nweight;

    @ApiModelProperty(value = "毛重")
    private Double gweight;

    @ApiModelProperty(value = "成分")
    private String component;

    @ApiModelProperty(value = "品类")
    private String category;

    @ApiModelProperty(value = "所属仓库id")
    private Long warehouseid;

    @ApiModelProperty(value = "所属仓库名称")
    private String warehousename;

    @ApiModelProperty(value = "是否唯一（0否 1是）")
    private String isunique;

    @ApiModelProperty(value = "有效天数")
    private Integer validday;

    @ApiModelProperty(value = "备注")
    private String remarks;

    @ApiModelProperty(value = "创建人id")
    private Long createid;

    @ApiModelProperty(value = "创建人")
    private String creator;

    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty(value = "创建时间")
    private Date creatime;

    @ApiModelProperty(value = "修改人id")
    private Long updateid;

    @ApiModelProperty(value = "修改人")
    private String updator;

    @TableField(fill = FieldFill.UPDATE)
    @ApiModelProperty(value = "修改时间")
    private Date updatetime;


}
